<?php
namespace Home\Controller;
use Home\Model\CommonBiz;
use Think\Controller;


class LoginBaseController extends Controller {

        public static $server_config_array;

        function _initialize(){
            $server_config_array = CommonBiz::getPageServerConfig();

            //region 1、加载主题策略
            $current_theme_name  = C('ThemeConfig.default_theme');

            $current_theme_array = array(
                'name'    => $current_theme_name,
                'root_resource_url' => C('ThemeConfig.theme_root_resource_dir'),
                'resource_url'=> C('ThemeConfig.theme_root_resource_dir').'/'.$current_theme_name,
                'extend_template' => 'template:eliteadmin_template',
                'extend_simple_template' => 'template:eliteadmin_simple_template',
            );
            $server_config_array['CurrentTheme']    = $current_theme_array;

            $this->assign('server_config', $server_config_array);
            $this->assign('current_extend_template', $current_theme_array['extend_template']);
            $this->assign('current_extend_simple_template', $current_theme_array['extend_simple_template']);
            //endregion 1、加载主题策略




    }

}